package com.A21.GuoSai.demo.atom_adjust.service;


import com.A21.GuoSai.demo.service_entity.entity.atom.AtomServicePojo;
import com.A21.GuoSai.demo.service_entity.entity.atom.DynamicVarPojo;
import com.A21.GuoSai.demo.service_entity.entity.atom.StaticVarPojo;
import com.A21.GuoSai.demo.service_entity.entity.workflow.DynamicVarValuePojo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public interface AtomPojoService {

    public List<AtomServicePojo> getAllAtoms();

    public List<AtomServicePojo> getAllAtomMessages();

    //    根据原子服务名获取原子服务的Id
    public Integer getAtomIdByName(@Param("atomName") String atomName);

    public StaticVarPojo getStaticVarByName(String atomName,String s_name);

    public List<StaticVarPojo> getAtomStaticVar(AtomServicePojo atomService);

    public List<DynamicVarPojo> getAtomDynamicVar(AtomServicePojo atomService);

    //    根据工作流包含的所有原子服务Id添加动态变量信息，动态变量只要传入
    public List<DynamicVarValuePojo> getAtomDynamicVarByAtomIds(List<Integer> atomIds);

    //    新增原子服务
    public void insertAtomService(AtomServicePojo atomService);
    //    添加原子服务对应的静态参数名
    public void insertAtomStaticVar(StaticVarPojo staticVarPojo);
    //    添加原子服务对应的动态参数名
    public void insertAtomDynamicVar(DynamicVarPojo dynamicVarPojo);

    public void updateAtom_Author_Attr(String author,String attributeConnnect,Integer id);
}
